﻿using Basic.FormRemoteModel.QueryControl;
using Basic.FormRemoteModel.QueryControl.Model;
using Basic.FormService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.FormService.RpcEvent
{
    internal class QueryControlEvent : IRpcApiService
    {
        private readonly IQueryControlService _Service;

        public QueryControlEvent ( IQueryControlService service )
        {
            this._Service = service;
        }
        public QueryControlDto[] GetQueryControls ( GetQueryControls obj )
        {
            return this._Service.GetEnables(obj.Location);
        }
    }
}
